package com.atguigu.configrationProperties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author 张晓
 * @create 2020-12-21 12:29
 */
@ConfigurationProperties(prefix = "userpro")
public class UserProperties {
    @Value("${userpro.name}")
    private String name;
    private Integer sex;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
}
